<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
<%@page import="service.ArticleService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@include  file="../common/taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>专题管理</title>
<link rel="stylesheet" type="text/css" href="${basePath}/static/css/public.css"/>
<link rel="stylesheet" type="text/css" href="${basePath}/static/css/index.css"/>

<script src="${basePath}/static/js/jQuery.js"></script>
<script src="${basePath}/static/layui/layui.all.js" charset="utf-8"></script>
<link rel="stylesheet" href="${basePath}/static/layui/css/layui.css" media="all">
</head>
<body>
	<h1>专题新增</h1>
	<div class="h60">
		<a href="type.jsp" class='fr'>
			<button type="button" class="layui-btn layui-btn-warm">返回</button>
		</a>
	</div>
	
	
	<form action='addTypeController.jsp' method="post" onsubmit="return validate()">
		<div class="layui-form-item">
              <label class="layui-form-label">日记种类</label>
		<div class="layui-input-block">
          <input type="text" name="name" autocomplete="off" placeholder="请输入专题名称" class="layui-input">
        </div>
        </div>
        
        <div class="layui-input-block">
          <button type="submit" class="layui-btn">立即提交</button>
        </div>
	</form>
	
	<script>
		function validate(){
			if(!$('input[name="name"]').val()){
				layer.msg("专题名称不允许为空！");
				return false;
			}
			return true;
		}
		
	</script>
</body>
</html>
